﻿// =================================================================== 
// 项目说明,功能实体类,用CodeSmith自动生成。
// =================================================================== 
// 文件名: MailListEntity.cs
// 修改时间：2020-9-8 10:40:05
// 修改人: lixiong
// =================================================================== 
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using JX.Infrastructure.Attribute;
using JX.Infrastructure.Common;

namespace JX.Core.Entity
{
	/// <summary>
	/// 数据库表：MailList 的实体类.
	/// </summary>
	[Table("MailList")]
	public partial class MailListEntity
	{
		#region Properties
		private int? _id = 0;
		/// <summary>
		/// 邮件ID(主键)(自增长)
		/// </summary>
		[Column("ID",TypeName="int")]
		[Key]
		[MyFlag("Identity")]
		public int? ID
		{
			get {return _id;}
			set {_id = value;}
		}
		
		private System.String _email = string.Empty;
		/// <summary>
		/// 邮件地址
		/// </summary>
		[Column("Email",TypeName="nvarchar(64)")]
		[RegularExpression(RegexHelper.EmailPattern, ErrorMessage = "Email格式不对")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String Email
		{
			get {return _email;}
			set {_email = value;}
		}
		
		#endregion
	}
}
